﻿<%@ Page Language="C#" %>

<%@ Import Namespace="wojilu" %>
<%@ Import Namespace="wojilu.View" %>
<%@ Import Namespace="wojilu.Apps.Qycms.Domain" %>
<%@ Import Namespace="wojilu.Apps.Qycms.Service" %>

<%PowerGroup modelpowergroup = v.data("powergroup") as PowerGroup; %>
<%var bllPowerGroupService = new PowerGroupService(); %>
<%List<Lngpack> list = v.data("list") as List<Lngpack>; %>

<%if (list.Count > 0){ %>
<% foreach (Lngpack row in list) { %>
<div class="infolist" onselectstart="return false;" title="<%=row.keycode %>-<%=HTML.NoHTML(row.langstr) %>" <%if (bllPowerGroupService.powercheck("system", "lanpackedit", modelpowergroup)) { %>ondblClick="javascript:parent.onbotton('_{language_edit_title}','<%=link.to(new wojilu.Web.Controller.Admin.Qycms.LanguageController().LanPackEdit, row.Id) %>?freshid='+Math.random()+'&iframename='+self.frameElement.getAttribute('name'),true,'lngpack<%=row.Id %>',self.frameElement.getAttribute('name'));" <%} %>>
	<table border="0" style="border-collapse:collapse" width="100%" bordercolor="#FFFFFF">
		<tr>
			<td width="4%"><%if(row.lockin==0){ %><input type="checkbox" name="selectinfoid" value="<%=row.Id %>"><%} %></td>
			<td width="5%"><%=row.Id %></td>
			<td width="21%"><%=strUtil.CutString(row.title,15) %></td>
			<td width="18%"><%=row.keycode %></td>
			<td width="42%"><%=strUtil.CutString(HTML.NoHTML(row.langstr),32) %></td>
			<td width="10%" id="infotype">
                <%if (bllPowerGroupService.powercheck("system", "lanpackedit", modelpowergroup)) { %>
				<table>
					<tr>
						<td><a class="setedit" onclick="javascript:parent.onbotton('_{language_edit_title}','<%=link.to(new wojilu.Web.Controller.Admin.Qycms.LanguageController().LanPackEdit, row.Id) %>?freshid='+Math.random()+'&iframename='+self.frameElement.getAttribute('name'),false,'lngpack<%=row.Id %>',self.frameElement.getAttribute('name'));" id="lngpack<%=row.Id %>" href="#body" title="_{language_edit_title}" hidefocus="true">_{setedit_botton}</a></td>
					</tr>
				</table>
				<%} %>
			</td>
		</tr>
	</table>
</div>
<%} %>
<%}else{%>
<div class="infolist">
<table border="0" style="border-collapse:collapse" width="100%" bordercolor="#FFFFFF">
	<tr>
	    <td align="center">_{list_nothing_title}</td>
	</tr>
</table>
</div>
<%} %>